#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>
#include <QTextEdit>
#include <QTextStream>
#include <QTime>
#include <QClipboard>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void initSignalAndSlots();

    QTextEdit * getCurrentTextEdit();

    QMap<QString, QString> tabFileMap;

    QString getCurrentTabObjectName();

    QClipboard *clipboard;

signals:

public slots:
    void newFile();

    void openFile();

    void saveFile();

    void copyToClipboard();

    void pastToTextEdit();

    void closeCurrentTab();

    void closeAllTab();

private slots:
    void on_tabWidget_tabCloseRequested(int index);

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
